package com.wang.system.domain.question.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class QuestionAddDTO {
    @Schema(description = "题目标题")
    @NotNull(message = "题目标题不能为空")
    private String title;

    @Schema(description = "难度")
    @NotNull(message = "难度不能为空")
    private Integer difficulty;

    @Schema(description = "时间限制")
    @NotNull(message = "时间限制不能为空")
    private Integer timeLimit;

    @Schema(description = "空间限制")
    @NotNull(message = "空间限制不能为空")
    private Integer spaceLimit;

    @Schema(description = "题目内容")
    @NotEmpty(message = "题目内容不能为空")
    private String content;

    @Schema(description = "测试用例")
    @NotEmpty(message = "测试用例不能为空")
    private String questionCase;

    @Schema(description = "默认代码")
    @NotEmpty(message = "默认代码不能为空")
    private String defaultCode;

    @Schema(description = "主函数")
    @NotEmpty(message = "主函数不能为空")
    private String mainFuc;
}
